﻿namespace Digitalmes.Domain.Mes;

/// <summary>
/// 设备信息表
/// </summary>
[SugarTable("equip_item", "设备表")]
public class EquipItem : EntityBase
{
    /// <summary>
    /// 设备编号
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "设备编号", Length = 64)]
    public string? EquipCode { get; set; }

    /// <summary>
    /// 设备名称
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "设备名称", Length = 64)]
    public string? EquipName { get; set; }

    /// <summary>
    /// 设备型号
    /// </summary>
    [SugarColumn(ColumnDescription = "设备型号", Length = 256)]
    public string? EquipModel { get; set; }

    /// <summary>
    /// 设备类型（1=>设备，2=>工装，3=>模具）
    /// </summary>
    [SugarColumn(ColumnDescription = "设备类型")]
    public EquipTypeEnum EquipType { get; set; }

    /// <summary>
    /// 生产厂家
    /// </summary>
    [SugarColumn(ColumnDescription = "生产厂家", Length = 64)]
    public string? Manufactor { get; set; }

    /// <summary>
    /// 所属产线 Id
    /// </summary>
    [SugarColumn(ColumnDescription = "所属产线Id")]
    public long LineId { get; set; }

    /// <summary>
    /// 所属产线编号
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "所属产线编号")]
    public string? LineCode { get; set; }

    /// <summary>
    /// 所属工位 Id
    /// </summary>
    [SugarColumn(ColumnDescription = "所属工位Id")]
    public long OpId { get; set; }

    /// <summary>
    /// 所属工位编号
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "所属工位编号")]
    public string? OpCode { get; set; }
}
